<?php
if( $_SERVER['HTTP_REFERER'] == "" )
{
exit;
}
include("config.php");
$sql1="select  *  from records";
$result1=$mysqli->query($sql1);
$sql="select * from (select  id,issueid,num  from records order by id desc LIMIT 0, 100) as b order by b.id";
$result=$mysqli->query($sql);
if($result1->num_rows){
while($field=$result->fetch_object()){
    echo "<div class='list1'>";
     echo "第".$field->issueid."期，";
     echo " 数字：".$field->num;
     echo "</div>";
}
}else{
    echo "没有数据";
}
$mysqli->close();

?>